package com.aggron.service;

import com.aggron.bean.PageQuery;
import com.aggron.bean.PageResult;
import com.aggron.common.JsonData;
import com.aggron.entity.SysUser;
import com.aggron.params.UserParams;
import com.baomidou.mybatisplus.service.IService;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author liuhuan
 * @since 2018-06-02
 */
public interface ISysUserService extends IService<SysUser> {

    void save(UserParams userParams);


    void update(UserParams userParams);

    JsonData login(SysUser sysUser)throws Exception;

    PageResult<Map<String,Object>> pageUser(PageQuery pageQuery, UserParams userParams);

    /**
     * 逻辑删除
     * @param id
     */
    void deleteLogic(Integer id);
}
